Remove unused buildProviderTargetEnv export from API proxy env config#5682
Conversation
buildProviderTargetEnv export from API proxy env config
There was a problem hiding this comment.
Pull request overview
This PR reduces the public API surface of the security-sensitive API proxy environment configuration by making buildProviderTargetEnv module-private and updating tests to validate behavior through the intended public entry point.
Changes:
- Made
buildProviderTargetEnvnon-exported insrc/services/api-proxy-env-config.tswhile preserving internal usage viabuildApiProxyBaseEnv. - Updated
src/services/api-proxy-service-split.test.tsto stop importing the internal helper and assert session-id normalization viabuildApiProxyBaseEnv.
Show a summary per file
| File | Description |
|---|---|
| src/services/api-proxy-env-config.ts | Removes an unused export to reduce public surface area in credential-handling env construction. |
| src/services/api-proxy-service-split.test.ts | Aligns tests with the public contract by asserting behavior through buildApiProxyBaseEnv. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Low
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Contribution Check completed successfully! Contribution guidelines review complete for PR #5682: no important guideline issues found in the provided PR metadata, diffs, and CONTRIBUTING.md. |
|
✅ Smoke Claude passed |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
🚀 Security Guard has started processing this pull request |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
🔌 Smoke Services — All services reachable! ✅ |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
✅ Smoke Gemini completed. All facets verified. 💎 |
|
✅ Build Test Suite completed successfully! |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
🔬 Smoke Test Results
Overall: FAIL — pre-computed step outputs ( PR: "Remove unused
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
🔥 Smoke Test: Copilot PAT — PASS
PR: Remove unused
|
Smoke Test: API Proxy OpenTelemetry Tracing
All scenarios pass. OTEL tracing integration is functioning correctly.
|
✅ Smoke Test: Copilot BYOK (Direct) Mode — PASSTest Results
Mode: Direct BYOK via
|
Chroot Smoke Test Results
Overall: ❌ FAILED — Python and Node.js versions differ between host and chroot environment.
|
Smoke Test
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test Results
Overall status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL —
|
|
|
|
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Status: PASS
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
buildProviderTargetEnvwas exported from a security-sensitive API proxy config module but had no external consumers. This unnecessarily expanded the module’s public surface in credential-handling code.API surface reduction
buildProviderTargetEnvinsrc/services/api-proxy-env-config.tsfrom exported to module-private.buildApiProxyBaseEnv.Test alignment with public contract
src/services/api-proxy-service-split.test.tsto stop importing the internal helper directly.buildApiProxyBaseEnv(the public entry point).